<!-- <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/dataTables.css">
<script type="text/javascript" src="__PUBLIC__/libs/artZoom/js/jquery.artZoom.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/libs/artZoom/css/jquery.artZoom.css">
 -->
<style>
.laydate-icon{
    height: 34px;
    line-height: 1.42857;
    padding-right:0;
}
</style>
<div class="builder builder-list-box">
	<div class="row">
	<div class="col-xs-12 col-sm-12">
		<notempty name="page_tips" >
		<div class="alert alert-{$tips_type} alert-dismissable">
		    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
		    <p>{$page_tips}</p>
		</div>
		</notempty>
	</div>
	</div>
    <!-- Tab导航 -->
    <notempty name="tab_nav">
        <div class="builder-tabs builder-list-tabs">
            <div class="row">
                <div class="col-xs-12">
                    <ul class="nav nav-tabs">
                        <volist name="tab_nav.tab_list" id="tab">
                            <li class="<php>if($tab_nav['current_tab'] == $key) echo 'active';</php>"><a href="{$tab.href}">{$tab.title}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </notempty>
    
    <!-- 顶部工具栏按钮 -->
	<php>
	if((!empty($top_button_list))||(!empty($search))){
	</php>
	<div class="builder-toolbar builder-list-toolbar">
	    <div class="row" style="margin-bottom:20px;">
	    <div class="col-xs-12 col-sm-12 button-list">
	    <!-- 工具栏按钮 -->
        <notempty name="top_button_list">
               <volist name="top_button_list" id="button">
                    <a {$button.attribute}>{$button.title}</a>&nbsp;
                </volist>
            
        </notempty>
        </div>
		</div>
		
		<notempty name="search_list">
		<div class="row" style="margin-bottom:20px;">
		<div class="col-xs-12 col-sm-12">
			<volist name="search_list" id="vo">
			<div class="col-xs-12 col-sm-4">
				<div class="input-group input">
				<span class="input-group-addon" style="cursor:pointer;"><a {$vo.btn.attribute}>{$vo.btn.title}</a></span>
				<php>
				if(empty($vo['options'])){
				</php>
				<input class="form-control {$vo['extra_class']}" name="{$vo['name']}" id="{$vo['name']}" type="{$vo['type']}" value="" placeholder="{$vo['title']}"/>
				<php>}else{</php>
				
				<select class="form-control {$vo['extra_class']}" name="{$vo['name']}" id="{$vo['name']}">
        			<option value=''>请选择</option>
	        	    <volist name="vo.options" id="vo2">
	        	 	<option value="{$vo2.fieldvalue}"  >{$vo2.title}</option>
	        		</volist>
	        	</select>
				<php>}</php>
				
				
				</div>
			</div>	
			</volist>
		</div>
		</div>
		</notempty>
		
		<div class="row">
		<div class="col-xs-12 col-sm-12 search-list">
		<!-- 下拉搜索框 -->
        <notempty name="search.arr">
        <div class="col-xs-12 col-sm-2 s-panel uinn-l">
        	<select class="form-control" name="keyselect" id="keyselect">
        		<option value=''>请选择</option>
        	    <volist name="search.arr" id="vo">
        	 	<option value="{$vo.fieldvalue}" <if condition="$_GET.keyselect eq $vo['fieldvalue']">selected</if> >{$vo.title}</option>
        		</volist>
        	</select>
         </div>
         </notempty>
         <notempty name="search.arr1">
         <div class="col-xs-12 col-sm-2 s-panel">
        	 <select class="form-control" name="keyselect1" id="keyselect1">
        	 	<option value=''>请选择</option>
        		<volist name="search.arr1" id="vo">
        	 	<option value="{$vo.fieldvalue}" <if condition="$_GET.keyselect1 eq $vo['fieldvalue']">selected</if> >{$vo.title}</option>
        	 	</volist>
        	 </select>
         </div>
         </notempty>
         <!-- 日期 -->
         <div class="col-xs-12 col-sm-2 s-panel search-form">
         	<notempty name="search.serchtime">
	             <input type="text" id="starttime" name="starttime" placeholder="开始日期"  class="text laydate-icon search-input form-control" value="{:I('starttime')}"/>
	            
             </notempty> 
         </div>
          <div class="col-xs-12 col-sm-2 s-panel search-form">
         	<notempty name="search.serchtime">
	            
	             <input type="text" id="endtime" name="endtime" placeholder="结束日期" class="text laydate-icon search-input form-control" value="{:I('endtime')}"/>
             </notempty> 
         </div>
         <!-- 搜索框 -->
         <notempty name="search">
         <div class="col-xs-12 col-sm-4 s-panel" style="padding-right:0;float:right;">
             <div class="input-group search-form" style="text-align: right;">
             <!-- 文本搜索框 -->
             <empty name="search.onlybtn"> 
                 <input type="text" name="keyword" class="search-input form-control" value="{$_GET.keyword}" placeholder="{$search.title}" id="st">
             </empty>    
                 <span class="input-group-btn"><a class="btn btn-default" href="javascript:;" id="search" url="{$search.url}"><i class="fa fa-search"></i>查询</a></span>
             </div>
             
             
             
         </div>
         </notempty>
         
		</div>
		</div>
	</div>
	<php>}</php>
	
	<php>
    $isMobile=WSTIsMobile();
    if($isMobile){
    </php>
    <!-- 数据列表 手机-->
    <volist name="table_data_list" id="data">
    <section class="panel corner-flip">
		<div class="panel-body">
			<table class="table table-striped">
				<tbody>
				<volist name="table_column_list" id="column" key="k">
				<tr>
					<td>
					<eq name="k" value="1">
						<input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]">
					</eq>
					{$column.title|htmlspecialchars}
					</td>
					<td>{$data[$column['name']]}</td>
				</tr>
				</volist>
				</tbody>
			</table>
		</div>												
   </section>
   </volist>
   <empty name="table_data_list">
    <section class="panel corner-flip">
   	<header class="panel-heading">
			<h3>暂时没有数据 </h3> 
			<!-- <label class="color">暂时没有数据 </label> -->
	</header>
    </section>
   </empty>
   <notempty name="table_data_page">
       <ul class="pagination">{$table_data_page}</ul>
   </notempty>		
    <php>
    }else{
    </php>
		
    <!-- 数据列表 pc-->
   <div class="builder-container builder-list-container">
      <div class="row">
            <div class="col-xs-12">
                <div class='box bordered-box orange-border' style='margin-bottom:0;'>
				    <div class='box-content box-no-padding'>
					    <div class='responsive-table'>
						    <div class='scrollable-area'>
							    <table class='data-table table table-bordered table-striped' style='margin-bottom:0;'>
								    <thead>
                                        <tr>
                                            <th><input class="check-all" type="checkbox"></th>
                                            <volist name="table_column_list" id="column">
                                                <th>{$column.title|htmlspecialchars}</th>
                                            </volist>
                                        </tr>
								    </thead>
								    <tbody>
							            <volist name="table_data_list" id="data">

								            <tr>
									            <td>
										            <input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]">
									            </td>
									            <volist name="table_column_list" id="column">
										            <if condition="is_array($column['name'])">
											            <td>{$data[$column['name']['0']]}&nbsp;～&nbsp;{$data[$column['name']['1']]}</td>
											            <else/>

											            <td>{$data[$column['name']]}</td>
										            </if>

									            </volist>
								            </tr>

							            </volist>

							            <empty name="table_data_list">
								            <tr class="builder-data-empty">
									            <php>$tdcolspan = count($table_column_list)+1</php>
									            <td class="text-center empty-info" colspan="{$tdcolspan}">
										            <i class="fa fa-database"></i> 暂时没有数据
										            <br>
										            <span class="small">本系统由 <a href="#" class="text-muted">{:C('WEB_SITE_TITLE')}</a> v{:C('CURRENT_VERSION')} 强力驱动</span>
									            </td>
								            </tr>
							            </empty>
						            </tbody>
							    </table>
						    </div>
					    </div>
				    </div>
                    <notempty name="table_data_page">
                        <ul class="pagination">{$table_data_page}</ul>
                    </notempty>
			    </div>
            </div>
        </div>
   </div>
	<php>
    }
    </php>
    <!-- 额外功能代码 -->
    {$extra_html}
</div>
    